//角色管理
import request from "@/utils/request.js"
//post请求方法
export default {
	//角色列表分页查询_主页面展示
	querySysRoleList(data) {
		return request.post('/member-security/sysrole-api/querySysRoleList', data)
	},

	//新增或修改角色
	addOrUpdateRole(data) {
		return request.post('/member-security/sysrole-api/addOrUpdateRole', {
			param: data
		})
	},

	//删除角色
	deleteSysRoleByid(arId) {
		return request.post('/member-security/sysrole-api/deleteSysRoleByid', {
			param: {
				arId: arId
			}
		})
	},

	//角色分配机构用户 --添加
	saveOrgRoleUser(data) {
		return request.post('/member-security/sysrole-api/saveOrgRoleUser', {
			param: data
		})
	},

	// 角色分配个人用户 --添加
	saveIndvRoleUser(data) {
		return request.post('/member-security/sysrole-api/saveIndvRoleUser', {
			param: data
		})
	},

	// 角色用户删除
	deleteRoleUser(arId, auIds) {
		return request.post('/member-security/sysrole-api/deleteRoleUser', {
			param: {
				arId: arId,
				auIds: auIds,
			}
		})
	},

	//机构用户配置列表
	queryOrgUserRoleList(data) {
		return request.post('/member-security/sysOrgUser/queryOrgUserRoleList', data)
	},

	//个人用户配置列表
	querySysRoleUserList(data) {
		return request.post('/member-security/indvUser/querySysRoleUserList', data)
	},

	//个人用户添加列表
	queryIndvUserList(data) {
		return request.post('/member-security/indvUser/queryIndvUserList', data)
	},

	//机构用户添加列表
	queryOrgUserAddRoleList(data) {
		return request.post('/member-security/sysOrgUser/queryOrgUserAddRoleList', data)
	},

}
